<!DOCTYPE html>
<html>
<head>
	<title></title>
	<meta charset="utf-8">
</head>
<body>
<script type="text/javascript">

/*var str="  sadf  ";
var start=0,end=str.length;
for(var i=0;i<str.length;i++){
	if(str.charAt(i)!=" "){
		break;
	}
	start++;
}
for(var i=str.length;i>=0;i--){
	if(str.charAt(i)!=" "){
		break;
	}
	end--;
}
var val=str.substring(start,end);

document.write(val);*/
/*
var goods="abcdefg1234abcdef";


console.log(goods.search(val));*/


/*function show(){
	var index=0;
do{
	index=val.indexOf("h",0);
		
		if(index==-1){
			break;
		}
		index++;
		document.write(index);
}
while(index!=-1)
}
*/


</script>


<!-- <button onclick="show()">点击</button> -->
</body>
</html>